package com.gcb.common.socket;

public enum WebSocketTypeEnum {

    POST_QUERY(1, "巡检需应答"),
    MSG_INFO(2, "巡检不应答"),
    HEART_CHECK(1000, "心跳检测"),
    SAFETY(2000, "主动安全报警"),
    OTHER(3000, "一般信息");

    private final Integer code;
    private final String info;


    WebSocketTypeEnum(Integer code, String info) {
        this.code = code;
        this.info = info;
    }

    public Integer getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}
